home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / doom / dme4bt13.zip / DJGPP.TXT < prev    next >
Text File  |  1995-09-22  |  5KB  |  98 lines

  1. DMapEdit is a C program, compiled under DJGPP.  What does this mean 
  2. exactly?  Well, DJGPP is a 32 bit compiler, so DMapEdit is a 32 bit 
  3. protected mode program, and uses 32 bit memory addresses.  You will need 
  4. at least a 386 to even run DMapEdit.  The nice thing about 32 bit 
  5. programs, however, is that they are faster than 16 bit programs 
  6. usually.  And since 32 memory addressing is used, you can use all the 
  7. memory in your machine, up to 4 gigs.
  8.  
  9. DOS doesn't support 32 bit programs yet.  So, something called a DOS
  10. extender is required.  This allows a program to use XMS/EMS instead of 
  11. just the conventional memory.  DJGPP compiled programs use a DOS 
  12. extender called GO32.EXE, which is included with DMapEdit.  When you run 
  13. DMapEdit, it will automatically load and run GO32.EXE, so you don't need 
  14. to worry about it.  You just need to make sure it's accessable to 
  15. DMapEdit.  This means in the current directory, or in the PATH 
  16. somewhere.  Throwing it in your dos directory will work nicely.  Or you 
  17. can just include your DMapEdit directory in your PATH statement.
  18.  
  19. For those who already have DJGPP installed on their machines, you should 
  20. watch out for GO32 version conflicts.  Use the GO32.EXE that comes with 
  21. DMapEdit, or you might be able to strip DMAPEDIT.EXE and re COFF2EXE 
  22. it.  I'm really not sure if this will work or not, though.  Let me know 
  23. if you know.  You could always set up a batch file somewhere in your 
  24. PATH like this:
  25.  
  26. c:/dmapedit/go32 c:/dmapedit/dmapedit %1 %2 %3 %4 %5 %6 %7 %8 %9
  27.  
  28. DMapEdit requires a 256 colors, with a minimum resolution of 640x480.  
  29. This, of course, means you must have a SVGA card.  DMapEdit supports the
  30. build-in video cards of the GRX library.  If it doesn't appear to 
  31. support your SVGA card, you have 2 options.  You can try to find a video 
  32. driver for your card, or you can try running UNIVESA.EXE.  This will 
  33. attempt to make your video card VESA compatible.  It is better to use a 
  34. VESA driver specifically for you card, however.  Most non-VESA cards 
  35. come with a VESA driver.  If yours didn't, you can try to get one from 
  36. your dealer.
  37.  
  38. If you don't have a math coprocessor, you will need set up a GO32
  39. environment variable to point to the math FPU emulator.  This is done 
  40. with the following line, usually in your AUTOEXEC.BAT file:
  41.  
  42. set GO32=emu c:\dmapedit\emu387
  43.  
  44. I you are not sure if you have a math coprocessor or not, you can just 
  45. try to run DMapEdit.  It will let you know if you don't.
  46.  
  47. If you already have some other 80387 emulator setup up on your machine, 
  48. be aware that it may not work.  DMapEdit runs in *protected* mode, and 
  49. not in real mode, so unless it works in protected mode, you will still 
  50. need to use emu387.
  51.  
  52. If this still isn't much help to you, or you want to know more about 
  53. DJGPP, you can subscribe to the DJGPP mailing list by sending mail to 
  54. listserv@sun.soe.clarkson.edu with no subject and one line of body like:
  55.  
  56. add myname@my.computer.onthe.net djgpp
  57.  
  58. Of course, put in your real email address instead.. :)  BE WARNED though!
  59. The DJGPP list sees a *LOT* of traffic.  They can probably answer any 
  60. question you have regarding DJGPP, though.  The FAQ for DJGPP is on simtel
  61. sites... One place for sure is ftp.cdrom.com: pub/simtel/msdos/djgpp/
  62. faq100.zip.  This should have enough info for you to get up to speed on
  63. running DJGPP apps.  Best of all... DJGPP is FREE SOFTWARE!  (not quite
  64. as good as free beer, but hey!)
  65.  
  66. Something I have discovered about DJGPP compiled programs and command line
  67. switches.  Doing something like this:
  68.  
  69. program -path c:\directory\ -file filename.dat
  70.  
  71. will not split up all the arguments as one might expect.  The
  72. 'c:\directory\' and '-file' will not be seperate, but will be combined into
  73. 'c:\directory\ -file' as one argument.  I discovered this by accident.  It
  74. appears '\ ' will allow you to force a space into the switch.  Thus, I would
  75. recommend using just 'c:\directory' instead.
  76.  
  77. Here's some stuff from the FAQ:
  78.  
  79. Q: Go32 complains that the CPU must be in V86 mode to run.
  80. A: When the CPU is in V86 mode, the V86 manager must provide VCPI
  81.    services for go32.  Since VCPI is an extension to EMS, disabling EMS
  82.    will disable VCPI, and prevent go32 from running.  For some EMS
  83.    managers, this means that you can't use the "noems" switch. 
  84.  
  85. Q: Why can't I keep QEMM in auto/off mode?
  86. A: When QEMM is in auto/off mode and there isn't anything in the system that
  87.    is using any of QEMM's features, the CPU remains in "real" mode.  Go32
  88.    knows this, and will try to use XMS to access the extended memory.
  89.    Unfortunately, XMS is a feature that causes QEMM to turn on, and go32
  90.    doesn't know this and when it tries to switch into protected mode,
  91.    QEMM traps it and gives a protection violation warning.  Since this
  92.    always requires a system reboot to fix, go32 checks to see if enabling
  93.    XMS caused the cpu to switch into v86 mode (meaning QEMM just turned
  94.    on) and gracefully exits.  All you have to do to work around this is
  95.    force QEMM to be on all the time so that go32 will know how to work
  96.    with it properly.
  97.  
  98.